package cn.iocoder.yudao.module.infra.dal.dataobject.ocr;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

/**
 * OCR Configuration Data Object
 * Stores OCR service configuration including API keys and settings
 *
 * @author yudao
 */
@TableName("infra_ocr_config")
@KeySequence("infra_ocr_config_seq") // For Oracle, PostgreSQL, Kingbase, DB2, H2 database primary key auto increment. MySQL can omit this.
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OcrConfigDO extends BaseDO {

    /**
     * Configuration ID, database auto increment
     */
    private Long id;
    
    /**
     * Configuration name
     */
    private String name;
    
    /**
     * OCR type: general_basic-General OCR, accurate_basic-Accurate OCR, idcard-ID Card OCR, business_license-Business License OCR, bankcard-Bank Card OCR, driving_license-Driving License OCR, vehicle_license-Vehicle License OCR
     */
    private String type;
    
    /**
     * Baidu App ID
     */
    @TableField("app_id")
    private String appId;
    
    /**
     * Baidu API Key
     */
    @TableField("api_key")
    private String apiKey;
    
    /**
     * Baidu Secret Key
     */
    @TableField("secret_key")
    private String secretKey;
    
    /**
     * Configuration status: 0-Disabled, 1-Enabled
     */
    private Integer status;
    
    /**
     * Remark
     */
    private String remark;

}